package package1;

public class TestForClassInformation {

	public static void main(String[] args) {
		String className = getCurrentClassName();
		System.err.println(className);
	}

	private static String getCurrentClassName() {
		String a =new Throwable().getStackTrace()[0].getClassName();
		a =a.substring(a.lastIndexOf(".")+1, a.length());
		return a;
	}

}
